﻿Partial Public Class MyInnerAwesomerControl

	Private Sub Button_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)
		RaiseEvent MyInnerAwesomerControlClick(sender, e)
	End Sub

	Public Shared ReadOnly MyInnerAwesomerControlClickEvent As RoutedEvent = EventManager.RegisterRoutedEvent("MyInnerAwesomerControlClick", RoutingStrategy.Bubble, GetType(RoutedEventHandler), GetType(MyInnerAwesomerControl))

	Public Custom Event MyInnerAwesomerControlClick As RoutedEventHandler
		AddHandler(ByVal value As RoutedEventHandler)
			[AddHandler](MyInnerAwesomerControlClickEvent, value)
		End AddHandler

		RemoveHandler(ByVal value As RoutedEventHandler)
			[RemoveHandler](MyInnerAwesomerControlClickEvent, value)
		End RemoveHandler

		RaiseEvent(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs)
			Dim newEventArgs As RoutedEventArgs = New RoutedEventArgs(MyInnerAwesomerControl.MyInnerAwesomerControlClickEvent)
			[RaiseEvent](newEventArgs)
		End RaiseEvent
	End Event

End Class
